package com.sky.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("图书库存状态统计VO")
public class BookInventoryStatusVO {

    @ApiModelProperty("总藏书量")
    private Integer totalBooks;

    @ApiModelProperty("库存状态列表")
    private List<StatusItem> inventoryStatus;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class StatusItem {
        @ApiModelProperty("状态名称")
        private String name;

        @ApiModelProperty("数量")
        private Integer value;

        @ApiModelProperty("百分比")
        private Double percentage;
    }
} 